package com.sz.admin.dtutransportinfo.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.Date;
import cn.idev.excel.annotation.ExcelIgnore;
import cn.idev.excel.annotation.ExcelProperty;
import com.sz.excel.annotation.DictFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * DtuTransportInfo返回vo
 * </p>
 *
 * @author sz-admin
 * @since 2025-10-23
 */
@Data
@Schema(description = "DtuTransportInfo返回vo")
public class DtuTransportInfoVO {

    @ExcelIgnore
    @Schema(description = "主键ID")
    private Long id;

    @ExcelProperty(value = "DTU设备编号")
    @Schema(description = "DTU设备编号")
    private String dtuNumber;

    @ExcelProperty(value = "排序")
    @Schema(description = "排序")
    private Integer sort;

    @ExcelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private Date createTime;

    @ExcelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private Date updateTime;

    @ExcelProperty(value = "创建人ID")
    @DictFormat(dictType = "dynamic_user_options")
    @Schema(description = "创建人ID")
    private Long createId;

    @ExcelProperty(value = "更新人ID")
    @DictFormat(dictType = "dynamic_user_options")
    @Schema(description = "更新人ID")
    private Long updateId;

    @ExcelProperty(value = "起点经度")
    @Schema(description = "起点经度")
    private Double startLongitude;

    @ExcelProperty(value = "起点纬度")
    @Schema(description = "起点纬度")
    private Double startLatitude;

    @ExcelProperty(value = "终点经度")
    @Schema(description = "终点经度")
    private Double endLongitude;

    @ExcelProperty(value = "终点纬度")
    @Schema(description = "终点纬度")
    private Double endLatitude;

    @ExcelProperty(value = "运输里程")
    @Schema(description = "运输里程")
    private Double transportDistance;

    @ExcelProperty(value = "司机id")
    @DictFormat(dictType = "dynamic_user_options")
    @Schema(description = "司机id")
    private Long userId;

    @ExcelProperty(value = "起点时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "起点时间")
    private Date startTime;

    @ExcelProperty(value = "终点时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "终点时间")
    private Date endTime;

    @ExcelProperty(value = "起点记录id")
    @Schema(description = "起点记录id")
    private Long startLogid;

    @ExcelProperty(value = "终点记录id")
    @Schema(description = "终点记录id")
    private Long endLogid;

}